package com.heima.wemedia;


import com.heima.wemedia.mapper.WmNewsMapper;
import com.heima.wemedia.mapper.WmNewsMaterialMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.ArrayList;
import java.util.List;

@SpringBootTest
public class sqlDemo {
    @Autowired
    WmNewsMaterialMapper wmNewsMaterialMapper;

    @Autowired
    WmNewsMapper wmNewsMapper;


    @Test
    public void test(){
        List list = new ArrayList<>();
        list.add(196);
        list.add(210);
        list.add(211);
        wmNewsMaterialMapper.saveRelations(list,6318, (short) 1);
    }


}
